﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Job.aspx.cs" Inherits="job_Job" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="nspLable.Function" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=title %></title>
<link rel="icon" href="../favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../Templates/B2B/css/comm.css" rel="stylesheet" type="text/css" />
<link href="../Templates/B2B/css/channels.css" rel="stylesheet" type="text/css" />
<script src="../Templates/B2B/js/jquery.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/common.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/jquery-exchange.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/ScrollText.js" type="text/javascript"></script>
<script src="../js/Page.js" type="text/javascript"></script>
<script  src="../js/Compare.js" type="text/javascript"></script>
<script src="../js/JScript.js" type="text/javascript"></script>
</head>
<body>
<%=_headstr %>
<div class="cot">
	<div class="bd_site bd_lin mar_top">
		<p class="hd_lt">您当前的位置：<a title="" href="<%=Base.BasePage.Config.WebURL %>">首页</a> &gt; <a title="" href="<%=Base.BasePage.Config.WebURL %>job/jobindex<%=Base.BasePage.Config.Rewrite %>">人才首页</a> &gt; <a title="" href="<%=Base.BasePage.Config.WebURL %>job/jobtrade<%=Base.BasePage.Config.Rewrite %>?type=<%=listtype %>"><%=title %></a><%=_typelike %></p>
		<i class="lt"></i><i class="rt"></i>
	</div>
</div>
<div class="cot">
	<div class="cce3">
		<div class="ltnr1 mar_top">
			<b>按<%=listtype ==1?"招聘":"求职" %>类别选择：</b>
			<p class="ltnr2">
				<%=_lowertype %>
			</p>
		</div>
		<p class="ltit mar_top">
			<span class="ltit1"><%=listtype ==1?"招聘":"求职" %>列表<%=endtime %></span>
			<span class="ltit3">
				<em><input name="KeywordText" id="KeywordText"  type="text" class="input1" style=" width:180px" value="<%=keyword %>" /></em>
				<em class="mtp"><a title="" href="javascript:void(0)" onclick="minoSearch2(sltP.options[sltP.selectedIndex].innerText,document.getElementById('KeywordText').value)"><img src="../Templates/B2B/images/so-an1.gif" /></a></em>
			</span>
			<span class="ltit4">
				<em>共<b class="f_c00"><%=jobcount %></b>条</em>
				<em><%=PageIndex%>/<%=pagecount%></em>
				<em class="lt"><a title="" href="<%=prevPage %>"></a></em>
				<em class="rt"><a title="" href="<%=nextPage %>">下一页</a></em>
			</span>
		</p>
		<div class="crcl">
						<input id="sel_p" name="sel_p" type="hidden" value="<%=Request.QueryString["pid"]==null||Request.QueryString["pid"].ToString()=="请选择省份"?"":Request.QueryString["pid"].ToString() %>" />                    <input id="sel_c" name="sel_c" type="hidden" value="<%=Request.QueryString["cid"]==null?"":Request.QueryString["cid"].ToString() %>" />                    <input id="sel_a" name="sel_a" type="hidden" value="<%=Request.QueryString["aid"]==null?"":Request.QueryString["aid"].ToString() %>" />
		<% if (listtype == 1)
     {
    %>
			<table cellpadding="0" cellspacing="0" border="0" class="rctab">
				<thead>
					<tr>
						<td>职位名称</td>
						<td>公司名称</td>
						<td>
				 <select id="sltP" style=" width:104px;" onchange="minoSearch2(sltP.options[sltP.selectedIndex].innerText,document.getElementById('KeywordText').value)" >
                        </select>
 <select id="sltC" style=" width:104px; display:none" >
                        </select>
 <select id="sltA" style=" width:104px; display:none" >
 </select>
			                    <script language="javascript" type="text/javascript">
			                        var sP = document.getElementById("sltP");
			                        var sC = document.getElementById("sltC");
			                        var sA = document.getElementById("sltA");
			                        var pid = document.getElementById("sel_p").value;
			                        var cid = document.getElementById("sel_c").value;
			                        var aid = document.getElementById("sel_a").value;
			                        SetCity(sP, sC, sA, pid, cid, aid);
                    </script>
						</td>
						<td>职位月薪</td>
						<td>发布日期</td>
					</tr>
				</thead>
				<tbody>
				<%
                    foreach (DataRow dr in jobArray)
                    { %>
					<tr>
						<td><a title="" href="<%=Base.BasePage.Config.WebURL+"JobShow-"+dr["ID"]+Base.BasePage.Config.Rewrite %> "><%=dr["Position"]%></a></td>
						<td><a title="" href="<%=Base.BasePage.Config.WebURL+"shops/index/"+dr["LoginName"]+Base.BasePage.Config.Rewrite %>"><%=dr["CompanyName"]%></a></td>
						<td><%=dr["Address"]%></td>
						<td><%=dr["SalaryLevel"]%></td>
						<td><%=dr["AddDate"].ToString().Split(' ')[0]%></td>
					</tr>
					<%} %>
				</tbody>
			</table>
			<%
     }%>
     <%if (listtype == 2)
       { %>
       			<table cellpadding="0" cellspacing="0" border="0" class="rctab">
				<thead>
					<tr>
						<td>姓名</td>
						<td>期望工作职位</td>
						<td>
				 <select id="sltP" style=" width:104px;" onchange="minoSearch2(sltP.options[sltP.selectedIndex].innerText,document.getElementById('KeywordText').value)" >
                        </select>
 <select id="sltC" style=" width:104px; display:none" >
                        </select>
 <select id="sltA" style=" width:104px; display:none" >
 </select>
			                    <script language="javascript" type="text/javascript">
			                        var sP = document.getElementById("sltP");
			                        var sC = document.getElementById("sltC");
			                        var sA = document.getElementById("sltA");
			                        var pid = document.getElementById("sel_p").value;
			                        var cid = document.getElementById("sel_c").value;
			                        var aid = document.getElementById("sel_a").value;
			                        SetCity(sP, sC, sA, pid, cid, aid);
                    </script>
						</td>
						<td>学历</td>
						<td>期望月薪</td>
					</tr>
				</thead>
				<tbody>
				<%
                    foreach (DataRow dr in jobArray)
                    { %>
					<tr>
						<td><%=dr["Name"]%></td>
						<td><a title="" href="<%=Base.BasePage.Config.WebURL+ "Job/ResumeShow-"+dr["ID"]+Base.BasePage.Config.Rewrite %>"><%=dr["WantPosition"]%></a></td>
						<td><%=dr["WantAddress"]%></td>
						<td><%=dr["HighestEducation"]%></td>
						<td><%=dr["WantSalary"].ToString().Split(' ')[0]%></td>
					</tr>
					<%} %>
				</tbody>
			</table>
       <%} %>
		</div>
		<%=PageNav %>
	</div>
	<div class="crt">
		<div class="olt2 cbr1 ow1 mar_top">
			<p class="o1tit olw1">
				<strong>人才搜索</strong>
			</p>
			<div class="crcr">
				<table cellspacing="0" cellpadding="0" border="0" class="rcrtab">
					<tr>
						<td>发布日期</td>
						<td>
						<select style="width:150px;" id="timetype_sel">
							<option value="0" >时间不限</option>
							<option value="1" <%=timetype==1?"selected":"" %>>一年以内</option>
							<option value="2" <%=timetype==2?"selected":"" %>>一月以内</option>
							<option value="3" <%=timetype==3?"selected":"" %>>两周以内</option>
							<option value="4" <%=timetype==4?"selected":"" %>>一周以内</option>
							<option value="5" <%=timetype==5?"selected":"" %>>两天以内</option>
							<option value="6" <%=timetype==6?"selected":"" %>>今天</option>
						</select>
						</td>
					</tr>
					<tr>
						<td colspan="2">
						<input type="radio" name="RadioGroup1"  value="1" id="type_sel1" <%= listtype==1?"checked":"" %>  /> 招聘
						<input type="radio" name="RadioGroup1" value="2" id="type_sel2" <%= listtype==2?"checked":"" %> /> 求职
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><input name="button" class="ssoan" type="button"  value="" onclick="mino();" /></td>
					</tr>
				</table>
			</div>
		</div>
		<div class="olt2 cbr1 ow1 mar_top">
			<p class="o1tit olw1">
				<strong>最近浏览的职位</strong>
			</p>
			<ul class="chuod cp3">
				<%=readcookies %>
			</ul>
		</div>
	</div>
</div>
<%=_footstr%>
</body>
<script type="text/javascript">
    function minoSearch2(pid, keyword) {
        var rooturl = '<%=Base.BasePage.Config.WebURL %>';
        var typeid = '<%=typeid %>';
        var page = '<%=PageIndex %>';
        var listType = '<%=listtype %>';
        var timetype = '<%=timetype %>';
        if (pid == '请选择省份') {
            pid = '';
        }
        window.location.href = '' + rooturl + 'job/jobtrade.aspx?type=' + listType + '&id=' + typeid + '&pid=' + escape(pid) + '&timetype=' + timetype + '&keyword=' + escape(keyword) + '';
    }
    function mino() {
        var rooturl = '<%=Base.BasePage.Config.WebURL %>';
        var typeid = '<%=typeid %>';
        var page = '<%=PageIndex %>';
        var listType = '<%=listtype %>';
        var timetype = document.getElementById('timetype_sel').value;
        var tp = document.getElementsByName('RadioGroup1');
        var seltype = 1;
        for (var i = 0; i < tp.length; i++) {
            if (tp[i].checked) {
                seltype = tp[i].value;
            }
        }
        window.location.href = '' + rooturl + 'job/jobtrade.aspx?timetype=' + timetype + '&type=' + seltype + '';
    }
</script>
</html>

